﻿using CommunityToolkit.Mvvm.ComponentModel;
using GameView.Comment;
using GameView.Models;
using GameView.Services.Dtos;

namespace GameView.Services
{
    public partial class RoleService : ObservableObject
    {
        public RoleService()
        { }

        public async Task<ApiResponse<List<RoleOutDto>>> GetAllAsync()
        {
            var res = await $"{APIHelper.Role}/all".GetAsync<List<RoleOutDto>, object>();
            return res;
        }
    }
}